<?php
/**
 * RedCross Application
 *
 * @copyright Copyright (c) 2010, Kristian Stokke Tryggestad, Rune Vikestad, Andreas Flaten Wist, Simen Nicolai Echholt, Ole Henrik Jahren
 */

/**
 * Form for selecting shifttemplate and which event to create the shift for.
 * 
 * @category RedCross
 * @package Admin_Form_Shift
 */
class Admin_Form_Shift_SelectEvent extends RedCross_Form
{
	
	public function init()
	{
		
		//$this->_shifttemplateService 	= RedCross_Factory::getService('Core_Service_ShiftTemplate');
		//$this->_eventService	 	= RedCross_Factory::getService('Core_Service_Event');
		
		//$eventarray = $this->_eventService->fetchAll();
		$this->addElement('select', 'event', array(
			'filters'	=> array('StringTrim','StripTags'),
			'required'	=> true,
			'label'		=> 'Event:'
		));
		$this->addElement('select', 'shift_template', array(
			'filters' 	=> array('StringTrim','StripTags'),
			'required' 	=> true,
			'label'		=> 'Shift Template:'
		));
		
		$this->addElement('submit', 'submit', array(
			'require'	=> true,
			'ignore'	=> true,
			'label'		=> 'Lag skift'
		));
	}
}